const state = {
  e_id: '', // 专家id
  p_id: '', // 项目id
  is_leader: 0 //是不是组长
};

const mutations = {
  SET_EXPERT_ID: (state, data) => {
    state.e_id = data;
  },
  SET_PROJECT_ID: (state, data) => {
    state.p_id = data;
  },
  LEADER_STATUS: (state, data) => {
    state.is_leader = data;
  },
  //清空state
  clear(state) {
    for (let i in state) {
      delete state[i]
    }
  },
}
const actions = {};

export default {
  state,
  mutations,
  actions
};
